
app.controller('indexController', function($scope,$http , $controller, loginService){
	$scope.status = -1;
	if(localStorage.status){
		$scope.status = localStorage.status;
	}else{
		location.href="../login.html";
	}
	
	$scope.loginName=localStorage.username;
	
	$scope.logout=function(){
		 localStorage.clear();
		 location.href="../login.html";
	}
	
//	 $http.get('../count/information.do?status='+$scope.status).success(
//				function(response){
//					console.log(response);
//				}
//		);
	
	
	
	
});